# -*- coding: utf-8 -*-
# Author: xiantingDeng
# File: 02_ ==与is.py
# Time: 21:12


a = [11, 22, 33]

b = [11, 22, 33]

print(a == b)  # True 判断里面的值是否相等
print(a is b)  # False 判断是否指向同一个引用

c = a
print(a)

# 2340337898056
# 2340337898568
# 2340337898056
print(id(a))
print(id(b))
print(id(c))

print(a is c)

# ==  判断内容
# is 判断是否引用的同一个


# 1 -126 数字 内存是引用的同一个
a = None
if a is None:
    print("同一个内存")
print(id(a))
print(id(None))
